<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>GSoC2011SfM: OpencvSfM::MatchingThread Struct Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">GSoC2011SfM
   &#160;<span id="projectnumber">0.1</span>
   </div>
   <div id="projectbrief">Google Summer of Code 2011: Structure from motion</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>OpencvSfM</b>      </li>
      <li class="navelem"><a class="el" href="struct_opencv_sf_m_1_1_matching_thread.html">MatchingThread</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a>  </div>
  <div class="headertitle">
<div class="title">OpencvSfM::MatchingThread Struct Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="OpencvSfM::MatchingThread" -->
<p>This struct is used by boost::thread object to compute match. I used some semaphore to ensure the matching process work well.  
 <a href="struct_opencv_sf_m_1_1_matching_thread.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_boost___matching_8h_source.html">Boost_Matching.h</a>&gt;</code></p>

<p><a href="struct_opencv_sf_m_1_1_matching_thread-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a17745505b16030a678d464969db7b958"></a><!-- doxytag: member="OpencvSfM::MatchingThread::CREATE_STATIC_MUTEX" ref="a17745505b16030a678d464969db7b958" args="(thread_concurr)" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_opencv_sf_m_1_1_matching_thread.html#a17745505b16030a678d464969db7b958">CREATE_STATIC_MUTEX</a> (thread_concurr)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Used to start as many thread as processors. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aedc0d7c858bfda524c207cd903c2e1e7"></a><!-- doxytag: member="OpencvSfM::MatchingThread::CREATE_STATIC_MUTEX" ref="aedc0d7c858bfda524c207cd903c2e1e7" args="(thread_unicity)" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_opencv_sf_m_1_1_matching_thread.html#aedc0d7c858bfda524c207cd903c2e1e7">CREATE_STATIC_MUTEX</a> (thread_unicity)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Used around critical sections. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_opencv_sf_m_1_1_matching_thread.html#a3509545a5cfbd9994713966116941fcb">MatchingThread</a> (cv::Ptr&lt; <a class="el" href="class_opencv_sf_m_1_1_sequence_analyzer.html">SequenceAnalyzer</a> &gt; <a class="el" href="struct_opencv_sf_m_1_1_matching_thread.html#a9f5044ef6e695d5b8e5aeefda5ce7874">seq_analyser</a>, unsigned int <a class="el" href="struct_opencv_sf_m_1_1_matching_thread.html#a584ed4ac0f86b315adb45e3ca91900d1">i</a>, std::vector&lt; cv::Ptr&lt; <a class="el" href="class_opencv_sf_m_1_1_points_to_track.html">PointsToTrack</a> &gt; &gt;::iterator <a class="el" href="struct_opencv_sf_m_1_1_matching_thread.html#ace2327ef4f8035da205908bb8ae3cc09">matches_it</a>)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_opencv_sf_m_1_1_matching_thread.html#a63e8b718ecb56468cca7dd66e19de4a4">operator()</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a584ed4ac0f86b315adb45e3ca91900d1"></a><!-- doxytag: member="OpencvSfM::MatchingThread::i" ref="a584ed4ac0f86b315adb45e3ca91900d1" args="" -->
unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_opencv_sf_m_1_1_matching_thread.html#a584ed4ac0f86b315adb45e3ca91900d1">i</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Index of source image. This image will be matched against every other. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ace2327ef4f8035da205908bb8ae3cc09"></a><!-- doxytag: member="OpencvSfM::MatchingThread::matches_it" ref="ace2327ef4f8035da205908bb8ae3cc09" args="" -->
std::vector&lt; cv::Ptr<br class="typebreak"/>
&lt; <a class="el" href="class_opencv_sf_m_1_1_points_to_track.html">PointsToTrack</a> &gt; &gt;::iterator&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_opencv_sf_m_1_1_matching_thread.html#ace2327ef4f8035da205908bb8ae3cc09">matches_it</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">iterator of every Points for track (points of other images to match) <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9f5044ef6e695d5b8e5aeefda5ce7874"></a><!-- doxytag: member="OpencvSfM::MatchingThread::seq_analyser" ref="a9f5044ef6e695d5b8e5aeefda5ce7874" args="" -->
cv::Ptr&lt; <a class="el" href="class_opencv_sf_m_1_1_sequence_analyzer.html">SequenceAnalyzer</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_opencv_sf_m_1_1_matching_thread.html#a9f5044ef6e695d5b8e5aeefda5ce7874">seq_analyser</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">This object contains every sequence related info (images, points, tracks...) <br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af4032a6ff57159ff1854bcb3039c2509"></a><!-- doxytag: member="OpencvSfM::MatchingThread::end_matches_it" ref="af4032a6ff57159ff1854bcb3039c2509" args="" -->
static std::vector&lt; cv::Ptr<br class="typebreak"/>
&lt; <a class="el" href="class_opencv_sf_m_1_1_points_to_track.html">PointsToTrack</a> &gt; &gt;::iterator&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_opencv_sf_m_1_1_matching_thread.html#af4032a6ff57159ff1854bcb3039c2509">end_matches_it</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">End of list images of points. It's the same for every thread, so set once for every thread before runing computation. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a78cdb5def6e18e5d8dbbbe5915a9b8fe"></a><!-- doxytag: member="OpencvSfM::MatchingThread::masks" ref="a78cdb5def6e18e5d8dbbbe5915a9b8fe" args="" -->
static std::vector&lt; cv::Mat &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_opencv_sf_m_1_1_matching_thread.html#a78cdb5def6e18e5d8dbbbe5915a9b8fe">masks</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">List of mask to hide some points in the matching computation. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ada0799eb3adfb43cc720d75b85a35b98"></a><!-- doxytag: member="OpencvSfM::MatchingThread::mininum_points_matches" ref="ada0799eb3adfb43cc720d75b85a35b98" args="" -->
static unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_opencv_sf_m_1_1_matching_thread.html#ada0799eb3adfb43cc720d75b85a35b98">mininum_points_matches</a> = 50</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Minimum matches between two images to accept the matches. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a560bf2489beba3822c9549f3514c6966"></a><!-- doxytag: member="OpencvSfM::MatchingThread::match_algorithm" ref="a560bf2489beba3822c9549f3514c6966" args="" -->
static <a class="el" href="class_opencv_sf_m_1_1_points_matcher.html">PointsMatcher</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_opencv_sf_m_1_1_matching_thread.html#a560bf2489beba3822c9549f3514c6966">match_algorithm</a> = NULL</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The algorithm to use for matching. <br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>This struct is used by boost::thread object to compute match. I used some semaphore to ensure the matching process work well. </p>

<p>Definition at line <a class="el" href="_boost___matching_8h_source.html#l00017">17</a> of file <a class="el" href="_boost___matching_8h_source.html">Boost_Matching.h</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a3509545a5cfbd9994713966116941fcb"></a><!-- doxytag: member="OpencvSfM::MatchingThread::MatchingThread" ref="a3509545a5cfbd9994713966116941fcb" args="(cv::Ptr&lt; SequenceAnalyzer &gt; seq_analyser, unsigned int i, std::vector&lt; cv::Ptr&lt; PointsToTrack &gt; &gt;::iterator matches_it)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OpencvSfM::MatchingThread::MatchingThread </td>
          <td>(</td>
          <td class="paramtype">cv::Ptr&lt; <a class="el" href="class_opencv_sf_m_1_1_sequence_analyzer.html">SequenceAnalyzer</a> &gt;&#160;</td>
          <td class="paramname"><em>seq_analyser</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; cv::Ptr&lt; <a class="el" href="class_opencv_sf_m_1_1_points_to_track.html">PointsToTrack</a> &gt; &gt;::iterator&#160;</td>
          <td class="paramname"><em>matches_it</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Constructor of a thread. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">seq_analyser</td><td>the sequence related infos </td></tr>
    <tr><td class="paramname">i</td><td>Index of source image. This image will be matched against every other </td></tr>
    <tr><td class="paramname">matches_it</td><td>iterator of every Points for track (points of other images to match) </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_boost___matching_8cpp_source.html#l00020">20</a> of file <a class="el" href="_boost___matching_8cpp_source.html">Boost_Matching.cpp</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a63e8b718ecb56468cca7dd66e19de4a4"></a><!-- doxytag: member="OpencvSfM::MatchingThread::operator()" ref="a63e8b718ecb56468cca7dd66e19de4a4" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void OpencvSfM::MatchingThread::operator() </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Thread implementation... </p>

<p>Definition at line <a class="el" href="_boost___matching_8cpp_source.html#l00029">29</a> of file <a class="el" href="_boost___matching_8cpp_source.html">Boost_Matching.cpp</a>.</p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following files:<ul>
<li>D:/Travail/These/Determination caracteristiques camera/GSoC/SfM/src/<a class="el" href="_boost___matching_8h_source.html">Boost_Matching.h</a></li>
<li>D:/Travail/These/Determination caracteristiques camera/GSoC/SfM/src/<a class="el" href="_boost___matching_8cpp_source.html">Boost_Matching.cpp</a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Sun Aug 21 2011 16:45:52 for GSoC2011SfM by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
